<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>朝闻天下后台管理</title>
    <include file="Public/head"/>
    <link href="__PUBLIC__/assets_h/stylesheets/datepicker.css" media="all" rel="stylesheet" type="text/css"/>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.bootstrap.wizard.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/fullcalendar.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.dataTables.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.easy-pie-chart.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.isotope.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.fancybox.pack.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/select2.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.inputmask.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.validate.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/bootstrap-fileupload.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/bootstrap-datepicker.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/bootstrap-timepicker.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/daterange-picker.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/date.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.sparkline.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/main.js" type="text/javascript"></script>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
</head>
<body class="no-skin">
<include file="Public/header"/>

<div id="wrap" style="margin-bottom: 60px">
    <div class="container-fluid">
        <include file="Public/sidmenu"/>
        <div class="col-md-10 col-md-offset-2 " style="margin-bottom: 30px">
            <h2 style="color: #56abe4; margin-bottom: 0px;padding-bottom: 0px;">
                <p class="bg-white" style="font-weight:bold;margin-bottom: 10px;margin-top: 10px;font-size: 30px">审核列表</p>
            </h2>
            <hr>
        </div>
        <div class="col-md-9  col-md-offset-2" style="">
            <div class="row">
              <!--  <div class="col-md-1"></div>-->
                <div class="col-md-12">
                    <form method=post action="{:U('Satus/search')}" enctype="multipart/form-data"class="form-horizontal" style="width: 20%">
                        <div class="form-group col-md-12" >
                            <div class="col-md-10" style="margin-right: 0px;padding-right: 0px">
                                <input type="search" name="text" results=s style="float: right" class="form-control" id="exampleInputtext1" placeholder="请输入标题搜索" required>
                            </div>
                        </div>
                    </form>
                    <table class="table table-hover">
                        <thead >
                        <tr >
                            <th style="text-align: center">序号</th>
                            <th style="text-align: center">类别名</th>
                            <th style="text-align: center">标题</th>
                            <th style="text-align: center">内容</th>
                            <th style="text-align: center">发布时间</th>
                            <th style="text-align: center">发布状态</th>
                            <th style="text-align: center">发布人</th>
                            <th style="text-align: center">置顶</th>
                            <th style="text-align: center">新闻图片</th>
                            <th style="text-align: center">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <volist name="list" id="vo">
                            <tr>
                                <td style="font-size: larger;color: #21e1d8;text-align: center">{$vo['code']}</td>
                                <td style="color: #21e1d8;text-align: center">{$vo['tid']}</td>
                                <td style="color: #21e1d8;text-align: center">{$vo['title']}</td>
                                <td style="width: 30%;color: #21e1d8;text-align: center">{$vo['content']}</td>
                                <td style="color: #21e1d8;text-align: center">{$vo['publishment']}</td>
                                <td style="color: #21e1d8;text-align: center"> <if condition="($vo.satus eq 1)">已通过<else/>未通过</if></td>
                                <td style="color: #21e1d8;text-align: center">{$vo['username']}</td>
                                <td style="color: #21e1d8;text-align: center"><if condition="($vo.top eq 1)">置顶<else/>未置顶</if></td>

                                <td style="text-align: center" >
                                    <a href="{:U('News/detail')}?id={$vo['id']}" >
                                        <img src="__PUBLIC__/images/pic/{$vo.n_pic}" style="border-radius:50% ; width:50px;height: 50px;" alt="空">
                                    </a>
                                </td>

                                <td style="fontcolor:aqua;color: #21e1d8;text-align: center">
                                    <if condition="($vo.satus eq 0)">
                                    <a href="{:U('Satus/editsatusa')}?id={$vo['id']}&satus={$vo['satus']}"><button type="button" class="btn btn-success">通过</button></a>
                                        <else/>
                                    <a href="{:U('Satus/editsatusb')}?id={$vo['id']}&satus={$vo['satus']}"><button type="button" class="btn btn-danger">否决</button></a>
                                        </if>
                                </td>

                            </tr>
                        </volist>
                        </tbody>
                    </table>

                </div>
               <!-- <div class="col-md-1">-->

                </div>
            </div>











        </div>


    </div>
</div>
</body>
</html>
